package thar.main;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;

public class THAR_questionActivity extends Activity implements View.OnClickListener {
	Button b1 = null;
	Button b2 = null;
	Button b3 = null;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.question);
        b1 = (Button) findViewById(R.id.button1);
        b1.setOnClickListener(this);
        b2 = (Button) findViewById(R.id.button2);
        b2.setOnClickListener(this);
        b3 = (Button) findViewById(R.id.button3);
        b3.setOnClickListener(this);
    }


	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if ( R.id.button2 == v.getId()) {
			Intent intent = new Intent(THAR_questionActivity.this, THAR_correctActivity.class);
	        startActivity(intent);
	        finish();

		}
		else {
			Intent intent = new Intent(THAR_questionActivity.this, THAR_notCorrectActivity.class);
	        startActivity(intent);
	        finish();
		}
	}
	
	
}